home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / SCLIB.ARJ / SCL1SAMP.EXE / VIDEOCFG.C < prev    next >
Text File  |  1992-01-01  |  676b  |  33 lines

  1. #include <scl1.h>
  2.  
  3.     /***************************
  4.        VideoConfig function    */
  5.  
  6. char *vs[]={
  7.      "",
  8.      "Monochrome",
  9.      "CGA",
  10.      "",
  11.      "EGA",
  12.      "EGA - mono",
  13.      "PGC",
  14.      "VGA - mono",
  15.      "VGA",
  16.      "",
  17.      "MCGA - digital - color",
  18.      "MCGA - analog - mono",
  19.      "MCGA - analog - color",
  20.      };
  21.  
  22. main()
  23. {
  24. struct VideoData *vd;
  25.  
  26. vd=VideoConfig();
  27. printf("\n  Video system: %s\n",vs[vd->Monitor]);
  28. printf("    Video mode: %i\n",vd->Mode);
  29. printf("   Active page: %i\n",vd->Page);
  30. printf("         Lines: %i\n",vd->Lines);
  31. printf("       Columns: %i\n",vd->Cols);
  32. printf("Buffer segment: %X\n\n",vd->Segment);
  33. }